import Vue from 'vue'
import Router from 'vue-router'
import index from '../views/index.vue'
import TaskPages from '../views/taskPages'
import Quote from '../views/quote'
import Step1 from '../views/steps/step1'
import Step2 from '../views/steps/step2'
import Step2List from '../views/steps/step2List'
import Step2Setting from '../views/steps/step2Setting'
import Step3 from '../views/steps/step3'
import Step3type2 from '../views/steps/step3type2'
import Register from '../views/register'
import Login from '../views/login'
import PreviewFunc from '../views/previewFunc'
import PreviewMod from '../views/previewMod'
import PreviewPage from '../views/previewPage'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'index',
      component: index
    },
    {
      path: '/taskPages',
      name: 'taskpages',
      component: TaskPages
    },

    {
      path: '/quote',
      name: 'quote',
      redirect: "/quote/step1",
      children: [
        {
          path: 'step1',
          component: Step1
        },
        {
          path: 'step2',
          component: Step2,
        },
        {
          path: 'step2list',
          component: Step2List
        },
        {
          path: 'step2Setting',
          component: Step2Setting
        },
        {
          path: 'step3',
          component: Step3,
        },
        {
              path: 'step3type2',
              component: Step3type2,
        }
      ],
      component: Quote
    },
    {
      path: '/register',
      name: 'register',
      component: Register
    },
    {
      path: '/login',
      name: 'login',
      component: Login
    },
    {
      path: '/previewFunc',
      name: 'previewFunc',
      component: PreviewFunc
    },
    {
      path: '/previewMod',
      name: 'previewMod',
      component: PreviewMod
    },
    {
      path: '/previewPage',
      name: 'previewPage',
      component: PreviewPage
    }
  ]
})

